﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DataImport.aspx.cs" Inherits="DataStorage_DataImport" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>数据入库</title>
    <base target="_self" />
    <link href="../css/css.css" rel="stylesheet" type="text/css" />

    <script src="../js/calendar.js" type="text/javascript"></script>

    <script src="../js/Common.js" type="text/javascript"></script>

    <script type="text/javascript">
    function sltChange(obj)
    {
        if(obj.value=="tb_EnergySave|表7"||obj.value=="tb_EnergySave09|表8")
        {
            $("tr1").style.display = "";
        }
        else
        {
            $("tr1").style.display="none";
        }
    }
    </script>

</head>
<body style="background-image: url('../images/hit_bg.gif');">
    <% 
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";
    %>
    <form id="form1" runat="server" method="post" enctype="multipart/form-data">
        <table style="width: 98%;" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td valign="middle" style="height: 25; width: 100%;">
                    <img id="imgIndicator" src="../images/Indicator.jpg" style="width: 21; height: 16;"
                        alt="当前位置" />当前位置：<asp:Label ID="Indicator" runat="server"></asp:Label></td>
            </tr>
            <tr style="height: 1; background-color: #dddddd;">
                <td>
                </td>
            </tr>
        </table>
        <table style="width: 98%;" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr style="height: 5;">
                <td>
                </td>
            </tr>
        </table>
        <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#327AC6">
            <tr align="center" style="height: 26px;">
                <td style="background-color: #F9F9FB;">
                    <font color="red">规划数据入库：选择各类型性能文件，分别从xls文件写入数据库，并进行实时校验。</font></td>
            </tr>
            <tr style="height: 26px;">
                <td style="background-color: #F9F9FB;">
                    [<strong>入库文件选择</strong>]</td>
            </tr>
            <tr style="height: 26px">
                <td style="background-color: #F9F9FB;">
                    <table style="width: 100%;" cellpadding="1" cellspacing="1">
                        <tr style="background-color: #F9F9FB; height: 25;">
                            <td align="right" style="width: 40%">
                                &nbsp;<strong>月份：</strong></td>
                            <td>
                                &nbsp;<asp:DropDownList ID="txtYears" runat="server" Width="110px">
                                </asp:DropDownList><span style="color: #ff0000">*</span></td>
                        </tr>
                        <tr style="background-color: #F9F9FB; height: 25;">
                            <td align="right" style="width: 40%">
                                &nbsp;<strong>导入数据类型：</strong></td>
                            <td>
                                &nbsp;<asp:DropDownList ID="sltType" runat="server">
                                    <asp:ListItem Value="" Selected="True">请选择导入数据类型...</asp:ListItem>
                                    <asp:ListItem Value="tb_EnergyFinance|表2">能耗财务统计表</asp:ListItem>
                                    <asp:ListItem Value="tb_EquipmentArrival,tb_BaseStation|表3">设备量到达情况表</asp:ListItem>
                                    <asp:ListItem Value="tb_Business|表4">业务量情况表</asp:ListItem>
                                    <asp:ListItem Value="tb_HousingArea|表5">局房面积统计表</asp:ListItem>
                                    <asp:ListItem Value="tb_EnergySave|表7">节能减排规划指标表</asp:ListItem>
                                    <asp:ListItem Value="tb_EnergySave09|表8">节能减排规划指标表09</asp:ListItem>
                                </asp:DropDownList><span style="color: #ff0000">*</span></td>
                        </tr>
                        <tr id="tr1" style="background-color: #F9F9FB; height: 25; display: none;">
                            <td align="right" style="width: 40%">
                                &nbsp;<strong>区域：</strong></td>
                            <td>
                                &nbsp;<select id="sltArea" runat="server" style="width: 110px;">
                                </select><span style="color: #ff0000">*</span></td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 40%">
                                &nbsp;<strong>导入数据表：</strong></td>
                            <td>
                                &nbsp;<asp:FileUpload ID="fuDataTable" runat="server" Width="300px" />
                                <input id="btnImport" class="button04" type="button" value="验证上传" runat="server"
                                    onserverclick="btnImport_ServerClick" />
                            </td>
                        </tr>
                        <tr style="background-color: #F9F9FB; height: 25;">
                            <td align="right" style="width: 40%">
                                &nbsp;<strong>提示：</strong></td>
                            <td>
                                &nbsp;<asp:Label ID="Text_Confirm_Upstate" runat="server" BackColor="#FFFF80" BorderColor="Red"
                                    BorderStyle="Dashed" BorderWidth="2px" Width="160px"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>

    <script type="text/javascript">
        if($("sltType").value=="tb_EnergySave|表7"||$("sltType").value=="tb_EnergySave09|表8")
            $("tr1").style.display = "";
        else
            $("tr1").style.display = "none";
    </script>

</body>
</html>
